<?php

namespace App\Http\Validates\Backend;

class JdValidate
{
    static public function categoryListPost()
    {
        return [
            'keyword' => 'string|between:0,30',
            'category_grade' => 'integer|between:-1,2',
            'parent_id' => 'integer|min:0',
            'page_num' => 'required|integer|min:1',
            'page_size' => 'required|integer|min:1'
        ];
    }

    static public function jingXuanPost()
    {
        return [
            'cid1' => 'integer|min:-1',
            'cid2' => 'integer|min:-1',
            'cid3' => 'integer|min:-1',
            'keyword' => 'string|between:0,30',
            'page_num' => 'required|integer|min:1',
            'page_size' => 'required|integer|min:1'
        ];
    }
}
